package com.boarsoft.boar.code.bean.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.boarsoft.bean.ReplyInfo;
import com.boarsoft.boar.code.bean.biz.BeanInfoBiz;

@RestController
@RequestMapping(value = "/bean/info")
public class BeanInfoAction {

	@Autowired
	private BeanInfoBiz beanInfoBiz;

	/**
	 * bean列表查询：/code/bean/info/list.do
	 *
	 * @param bean
	 *            bean全路径
	 * @return bean信息列表
	 */
	@RequestMapping(value = "/list.do")
	// @Authorized(code = "com.list")
	public ReplyInfo<Object> list(String key, int pageNo, int pageSize) {
		return new ReplyInfo<Object>(true, beanInfoBiz.list(key, pageNo, pageSize));
	}
}
